package com.yn.club.subject.application.convert;


import java.util.List;
import com.yn.club.subject.domain.entity.SubjectMappingDO;
import com.yn.club.subject.application.dto.SubjectMappingDTO;
import com.yn.club.subject.application.request.SubjectMappingSaveRequest;
import com.yn.club.subject.application.request.SubjectMappingQueryRequest;
import org.mapstruct.Mapper;
import com.yn.club.common.util.MapStructUtil;
/**
 * 题目分类关系表(SubjectMapping)DTO和DO转换
 *
 * @author YN
 * @since 2025-01-21 17:40:47
 */
@Mapper(componentModel = "spring", uses = {MapStructUtil.class})
public interface SubjectMappingApplicationConverter {

  SubjectMappingDTO convertDoToDto(SubjectMappingDO ojb);
  
  List<SubjectMappingDTO> convertDoToDto(List<SubjectMappingDO> ojbs);
  
  SubjectMappingDO convertDtoToDo(SubjectMappingDTO ojb);
  
  List<SubjectMappingDO> convertDtoToDo(List<SubjectMappingDTO> ojbs);
  
  SubjectMappingDO convertSaveRequestToDo(SubjectMappingSaveRequest ojb);
  
  SubjectMappingDO convertQueryRequestToDo(SubjectMappingQueryRequest ojb);
  
  
}

